<!--<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			onload = function(){
				var oInput = document.getElementsByTagName("input")[0];
				var oBox  = document.getElementById("box");
				
				//文字被选中
				oInput.onselect = function(){
					oBox.innerHTML = "文字被选中";
				};
				//文字被修改
				oInput.onchange = function(){
					console.log("文字被修改");
					oBox.innerHTML = "文字被修改";
				};
			};
		</script>
	</head>
	<body>
		<input type="text" name="" id="" value="我是初始化字符串" />
		<div id="box" style="background: red;width: 200px;height: 200px;">
			
		</div>
	</body>
</html>-->
